package com.yx.pc.api.service;

import com.baomidou.mybatisplus.service.IService;
import com.yx.modules.api.entity.TbToken;

import java.util.Map;

/**
 * Created by wuye on 2017/11/24.
 */
public interface PcTbTokenService extends IService<TbToken> {

    TbToken queryByUserId(Long userId);

    TbToken queryByToken(String token);

    /**
     * 生成token
     * @param userId  用户ID
     * @return        返回token相关信息
     */
    Map<String, Object> createToken(long userId);

}
